﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkflowCore2210A.Domain.Model
{
    /// <summary>
    /// 流程实例表(此表与Workflow表是一对一关系),此表存储业务相关信息
    /// </summary>
    [Table("WorkflowInstance")]
    public class WorkflowInstanceModel:BaseEntity
    {
        [MaxLength(100)]
        public string Title { get; set; }
        [MaxLength(100)]
        public string DefinitionId { get; set; }
        [MaxLength(100)]
        public string WorkflowId { get; set; }
        [MaxLength(100)]
        public string StepName { get; set; }
        [MaxLength(100)]
        public string AuditUserName { get; set; }
        /// <summary>
        /// 流程状态：处理中、驳回、通过
        /// </summary>
        [MaxLength(100)]
        public string Status { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime CompelteTime { get; set; }
        /// <summary>
        /// 流程申请人
        /// </summary>
        [MaxLength(100)]
        public string ApplicantUserName { get; set; }

        [Column(TypeName ="text")]
        public string FormData { get; set; }

        // 表单模板外键ID
    }
}
